package com.ndf.learn.dao.impl;

import com.ndf.learn.dao.IUserDao;
import com.ndf.learn.model.User;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by lin on 2017/11/19.
 */
@Repository
public class UserDaoImpl implements IUserDao{

    @Resource
    private SqlSessionTemplate sqlSessionTemplate;

    @Override
    public List<User> queryList(Map<String, Object> paramMap) {
        return sqlSessionTemplate.selectList("userMapper.queryList", paramMap);
    }

}
